﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxGridView;
using DevExpress.Data;
using DevExpress.Web.ASPxEditors;

namespace OnlineDovizOtomasyonu
{
    public partial class ayrintialacak : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnHesapDefteri_Click(object sender, EventArgs e)
        {
            
        }

        protected void AyrintiMenu_ItemClick(object source, DevExpress.Web.ASPxMenu.MenuItemEventArgs e)
        {
            if (e.Item.Name=="M2")
            {
                listeexport.FileName = DateTime.Now.Day +"_"+ DateTime.Now.Month +"_"+ DateTime.Now.Year + "_Alacak_Ayrinti_Raporu";
                listeexport.WriteXlsToResponse();
            }
            if (e.Item.Name=="M3")
            {
                listeexport.FileName = DateTime.Now.Day + "_" + DateTime.Now.Month + "_" + DateTime.Now.Year + "_Alacak_Ayrinti_Raporu";
                listeexport.WritePdfToResponse();
            }
            if (e.Item.Name == "M5")
            {
                Session.Abandon();
                Response.Redirect("sistem.aspx");
            }
        }

        
    }
}